home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 3_1.lha / 3_1 / 3_1tst.c < prev    next >
C/C++ Source or Header  |  1993-08-08  |  602b  |  25 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. include <stream.h>
  6.  
  7. ain()
  8.  
  9.    static char input_line[] = "Tom? Is that you Tom? I was so worried.";
  10.    int max_length = sizeof(input_line) - 1;
  11.    
  12.    int quest_count = 0;
  13.    int i = 0;
  14. include "3_1a.c"
  15.    cout << "quest_count = " << quest_count << "\n";
  16.    quest_count = 0;
  17. include "3_1b.c"
  18.    cout << "quest_count = " << quest_count << "\n";
  19.    char *p;
  20.    quest_count = 0;
  21. include "3_1c.c"
  22.    cout << "quest_count = " << quest_count << "\n";
  23.    return 0;
  24.  
  25.